package casa.depesos.app.com.http.req;

import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.OrderDetailBean;
import casa.depesos.app.com.http.parser.OrderDetailParser;
import okhttp3.FormBody;

public class OrderDetailReq implements HttpReq<OrderDetailBean> {

    String no;

    public OrderDetailReq(String no) {
        this.no = no;
    }

    @Override
    public void req(ReqCallback<OrderDetailBean> callback) {// /app/loan/queryLoanDetail
        FormBody.Builder builder = new FormBody.Builder();
        builder.add("lref", no);
        Req.post("/app/financial/fetchLoanProfile", getParam(), getHeader(), builder.build(), new OrderDetailParser(), callback, this);
    }
}
